package com.zz.cc.common.data;

import com.zz.common.utils.FileUtil;

public abstract class IFileManager {
	
	private static final String FILE_NAME_NO_MEDIA = ".nomedia";

	protected static final String PATH_ROOT = "CC/";
	
	protected static final String PATH_BUSINES = "Business/";
	protected static final String PATH_OWNER = "Owner";
	
	protected static final String PATH_ICON_CACHE = "IconCache/";
	protected static final String ICON_FILE_EXTENSION = ".jpg";
	
	protected static final String PATH_LOG = "Log/";
	
	
	public abstract String getWorkDir();
	
	protected static void makeDirNoMedia(String path) {
		FileUtil.ensureDir(path);
		String filePath = path + FILE_NAME_NO_MEDIA;
		FileUtil.ensureFile(filePath);
	}
}
